﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.ProductionManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProductionManagement.ProductionInboundVMs
{
    public partial class ProductionInboundTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._ProductionInbound._LineId")]
        public ExcelPropety LineId_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.LineId);
        [Display(Name = "_Model._ProductionInbound._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.LineCode);
        [Display(Name = "_Model._ProductionInbound._OpId")]
        public ExcelPropety OpId_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.OpId);
        [Display(Name = "_Model._ProductionInbound._OpCode")]
        public ExcelPropety OpCode_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.OpCode);
        [Display(Name = "_Model._ProductionInbound._ProductId")]
        public ExcelPropety ProductId_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.ProductId);
        [Display(Name = "_Model._ProductionInbound._ProductCode")]
        public ExcelPropety ProductCode_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.ProductCode);
        [Display(Name = "_Model._ProductionInbound._Sn")]
        public ExcelPropety Sn_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.Sn);
        [Display(Name = "_Model._ProductionInbound._Wo")]
        public ExcelPropety Wo_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.Wo);
        [Display(Name = "_Model._ProductionInbound._Rfid")]
        public ExcelPropety Rfid_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.Rfid);
        [Display(Name = "_Model._ProductionInbound._Ver")]
        public ExcelPropety Ver_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.Ver);
        [Display(Name = "_Model._ProductionInbound._InboundTime")]
        public ExcelPropety InboundTime_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.InboundTime, true);
        [Display(Name = "_Model._ProductionInbound._InboundStatus")]
        public ExcelPropety InboundStatus_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.InboundStatus);
        [Display(Name = "_Model._ProductionInbound._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.IsValid);
        [Display(Name = "_Model._ProductionInbound._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<ProductionInbound>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class ProductionInboundImportVM : BaseImportVM<ProductionInboundTemplateVM, ProductionInbound>
    {
            //import

    }

}